package com.sansan.qiangji.service.impl.device;

import com.sansan.qiangji.entity.device.Scan;
import com.sansan.qiangji.mapper.device.ScanMapper;
import com.sansan.qiangji.service.inter.device.ScanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ScanServiceImpl implements ScanService {
    private ScanMapper scanMapper;

    @Resource
    public void setScanMapper(ScanMapper scanMapper){
        this.scanMapper = scanMapper;
    }
    
    @Override
    public List<Scan> findAllScan() {
        return scanMapper.findAllScan();
    }

    @Override
    public int updateScan(Scan scan) {
        return scanMapper.updateScan(scan);
    }

    @Override
    public int updateScans(List<Scan> scans) {
        return scanMapper.updateScans(scans);
    }

    @Override
    public int addScan(Scan scan) {
        return scanMapper.addScan(scan);
    }

    @Override
    public List<Scan> findByScanName(String scanName) {
        return scanMapper.findByScanName(scanName);
    }

    @Override
    public List<Scan> findByShelveName(String shelveName) {
        return scanMapper.findByShelveName(shelveName);
    }

    @Override
    public Scan findByScanId(Integer scanId) {
        return scanMapper.findByScanId(scanId);
    }

    @Override
    public int deleteById(Integer scanId) {
        return scanMapper.deleteById(scanId);
    }
}
